const mongoose = require('mongoose')

mongoose.connect('mongodb://esf:ershowfang@122.51.104.38:27017/esfdb?authSource=admin');
const conn = mongoose.connection
conn.on('open', () => {
    console.log('连接成功');
})
conn.on('error', (err) => {
    console.log(err);
})
module.exports = mongoose